import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'page',
    component: () => import('@/views/Page.vue'),
    meta: {
      title: '水肥一体化监测平台'
    }
  },
  {
    path: '/Page',
    redirect: '/'
  },
  {
    path: '/Page',
    name: 'Page',
    component: () => import('@/views/Page.vue'),
    meta: {
      title: '水肥一体化监测平台'
    }
  }
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
